/**
 * Created by billy on 2016/11/30.
 */
var WEB_CONFIG = {
	mode: ["release","debug"], //工作模式

	path: {
		domain: "{$host}/mobile",
		base: "{$domain}/{$ver}",
		assets: "{$base}/assets",
		data: "{$assets}/data",
		images: "{$assets}/images",
		template: "{$assets}/template",
		libs: "{$base}/libs"
	},

	url: {
		domain: "",
		server: "http://47.96.176.167:8101/"
	},
	http: {
		method: "post",
		credentials: true,
		repeatReqTime: 2000,
		req: {
			result: {
				name: "status",
				type: "number",
				success: 1
			},
			data: {
				name: "data"
			},
			error: {
				name: "error",
				type: "number"
			},
			errorMsg: {
				name: "msg",
				type: "string"
			},
			mime: "json"
		}
	},

	file: {

		staticData: "{$data}/staticData.data",

	},

	net: {
		timeout: 5000
	},

	param: {
		defaultLang: "cn",
		loginExpires: 10 * 60,
		sendCodeTime: 5,
		pageSize: 9,
		accountRegExp: /^1(3|4|5|7|8)\d{9}$/,
		phoneReg: /^1(3|4|5|7|8)\d{9}$/,
		passwordRegExp: /^\w{6,20}$/,
		nameReg: /^[\u2E80-\u9FFF]{2,10}/,
		compNameReg: /^[\u2E80-\u9FFF]{2,40}/,
		telphoneReg: /(\(\d{3,4}\)|\d{3,4}-|\s)?\d{7,8}/,
		emailReg: /^\w+([-+.]\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*$/,
		idCardNoReg: /(^\d{15}$)|(^\d{18}$)|(^\d{17}(\d|X|x)$)/,
		creditNoReg: /[0-9A-Z]{18}/,
		codeReg: /\d{4}/,
		timeoutClock: 10,
		searchContentLength:50,
		hotMapMax: 1000,
		hotMapOptions: {
			gradient: {
				.25: '#3242fc',
				.50: '#3ce058',
				.75: '#ffcc00',
				.90: '#fc0000'
			},
			opacity: 0.7
		},
		radiusRatio: 50,
		hotMapLevel: 15,
		level: 5,
		hotMapMinZoom: 15,
		hotMapMaxZoom: 19,
		delPicAccess: "http://192.168.0.118:8101/file/del",
		uploadAccess: "http://192.168.0.118:8101/file/upload",
		ossPrefix: "http://47.96.176.167:8101/",
		ossAddress: "http://system.chachadian.cn/web/assets/rank/",
		versionData: [
			{
				"id": "base",
				"name": "入门版",
				"maxId": 3,
				"children": [
					{
						"id": 1,
						"parentId": "base",
						"name": "免费版",
						"price": "0",
						"unit": "月",
						"slogan": "",
						"remark": "",
						"rights": [
							{
								"开放城市个数": "1个",
								"辅助地址搜索次数": "6次"
							},
							{
								"辅助选址开放数据": "<br/>写字楼&大学&居民小区&医院；<br />区域月销总量。"
							}
						]
					},
					{
						"id": 2,
						"parentId": "base",
						"name": "体验版",
						"price": 9.9,
						"unit": "月",
						"slogan": "",
						"remark": "",
						"rights": [
							{
								"开放城市个数": "1个",
								"辅助选址搜索次数": "10次",
								"门店订购个数": "1个",
								"手动设置热力图峰值": "开通",
							},
							{
								"辅助选址开放数据": "<br/>写字楼&大学&居民小区&医院；<br/>区域月销总量&平均月销量&全城月销总量。"
							},
							{
								"竞争监控方式": "<br/>地址搜索&店铺搜索"
							}
						]
					},
					{
						"id": 3,
						"parentId": "base",
						"unit": "月",
						"name": "基础版",
						"price": 199,
						"slogan": "立省358元",
						"remark": "2029.8/年",
						"rights": [
							{
								"开放城市个数": "3个",
								"辅助选址搜索次数": "599次",
								"门店订购个数": "6个",
								"品牌订购个数": "2个",
								"手动设置热力图峰值": "开通",
							},
							{
								"辅助选址开放数据": "<br/>写字楼&大学&居民小区&医院；<br/>区域月销总量&平均月销量&全城月销总量。"
							},
							{
								"竞争监控方式": "<br/>地址搜索&店铺搜索&品牌搜索"
							}
						]
					}
				]
			},
			{
				"id": "profession",
				"name": "专业版",
				"maxId": 6,
				"children": [
					{
						"id": 4,
						"name": "高级版",
						"parentId": "profession",
						"price": 999,
						"unit": "月",
						"slogan": "立省1798元",
						"remark": "¥10189.8/年",
						"rights": [
							{
								"开放城市个数": "6个",
								"辅助选址搜索次数": "无限次",
								"门店订购个数": "20个",
								"品牌订购个数": "10个",
								"手动设置热力图峰值": "开通",
								"全城市热力图": "开通",
								"辅助选址数据": "全部开通",
								"竞争监控方式": "全部开通",
							},
							{
								"区域热榜开放榜单": "产品榜&店铺榜&品牌榜&品类榜"
							}
						]
					},
					{
						"id": 5,
						"parentId": "profession",
						"unit": "月",
						"name": "旗舰版",
						"price": 2999,
						"slogan": "立省5398元",
						"remark": "¥30589.8/年",
						"rights": [
							{
								"开放城市个数": "11个",
								"辅助选址搜索次数": "无限次",
								"门店订购个数": "50个",
								"品牌订购个数": "30个",
								"手动设置热力图峰值": "开通",
								"全城市热力图": "开通",
								"辅助选址模拟对比": "开通",
								"辅助选址数据": "全部开通",
								"竞争监控方式": "全部开通",
							},
							{
								"区域热榜开放榜单": "全部开通"
							}
						]
					},
					{
						"id": 6,
						"parentId": "profession",
						"unit": "月",
						"name": "至尊版",
						"price": 9999,
						"slogan": "立省17998元",
						"remark": "101989.8/年",
						"rights": [
							{
								"开放城市个数": "全国",
								"辅助选址搜索次数": "无限次",
								"门店订购个数": "999个",
								"品牌订购个数": "999个",
								"手动设置热力图峰值": "开通",
								"全城市热力图": "开通",
								"辅助选址模拟对比": "开通",
								"辅助选址数据": "全部开通",
								"竞争监控方式": "全部开通",
							},
							{
								"区域热榜开放榜单": "全部开通"
							}
						]
					}
				]
			}
		],
		detailData: [
			{
				"id": 1,
				"module": "版本价格",
				"function": "/",
				"free": "￥0",
				"experience": "￥9.9/月",
				"base": "￥199元/月",
				"professional": "￥999元/月",
				"flagship": "￥2999元/月",
				"top": "￥9999元/月"
			},
			{
				"id": 2,
				"module": "辅助选址",
				"function": "搜索地址个数",
				"free": "6个",
				"experience": "10个/月",
				"base": "599个/月",
				"professional": "不限",
				"flagship": "不限",
				"top": "不限"
			},
			{
				"id": 3,
				"module": "",
				"function": "开放城市个数",
				"free": "1",
				"experience": "1",
				"base": "3",
				"professional": "6",
				"flagship": "11",
				"top": "所有已开通城市"
			},
			{
				"id": 4,
				"module": "",
				"function": "热力图峰值调节",
				"free": "开通",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 5,
				"module": "",
				"function": "写字楼数据",
				"free": "开通",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 6,
				"module": "",
				"function": "居民小区数据",
				"free": "开通",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 7,
				"module": "",
				"function": "医院数据",
				"free": "开通",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 8,
				"module": "",
				"function": "区域内月销总量",
				"free": "开通",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 9,
				"module": "",
				"function": "区域内平均月销量",
				"free": "/",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 10,
				"module": "",
				"function": "全城月销总量",
				"free": "/",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 11,
				"module": "",
				"function": "全城热力图",
				"free": "/",
				"experience": "/",
				"base": "/",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 12,
				"module": "",
				"function": "历史比对",
				"free": "开通",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 13,
				"module": "",
				"function": "地址模拟比对",
				"free": "/",
				"experience": "/",
				"base": "/",
				"professional": "/",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 14,
				"module": "竞争监控",
				"function": "区域搜索",
				"free": "/",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 15,
				"module": "",
				"function": "店铺搜索",
				"free": "/",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 16,
				"module": "",
				"function": "品牌搜索",
				"free": "/",
				"experience": "/",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 18,
				"module": "",
				"function": "门店订购个数",
				"free": "/",
				"experience": "1",
				"base": "6",
				"professional": "20",
				"flagship": "50",
				"top": "999"
			},
			{
				"id": 19,
				"module": "",
				"function": "品牌订购个数",
				"free": "/",
				"experience": "/",
				"base": "2",
				"professional": "10",
				"flagship": "30",
				"top": "999"
			},
			{
				"id": 20,
				"module": "",
				"function": "开放城市个数",
				"free": "1",
				"experience": "1",
				"base": "3",
				"professional": "6",
				"flagship": "11",
				"top": "所有已开通城市"
			},
			{
				"id": 21,
				"module": "区域热榜",
				"function": "产品榜",
				"free": "/",
				"experience": "/",
				"base": "/",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 22,
				"module": "",
				"function": "店铺榜",
				"free": "/",
				"experience": "/",
				"base": "/",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 23,
				"module": "",
				"function": "品牌榜",
				"free": "/",
				"experience": "/",
				"base": "/",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 24,
				"module": "",
				"function": "品类榜",
				"free": "/",
				"experience": "/",
				"base": "/",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 26,
				"module": "个人中心",
				"function": "账户管理",
				"free": "开通",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 27,
				"module": "",
				"function": "版本管理",
				"free": "开通",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 28,
				"module": "",
				"function": "订单中心",
				"free": "开通",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			},
			{
				"id": 29,
				"module": "",
				"function": "消息中心",
				"free": "开通",
				"experience": "开通",
				"base": "开通",
				"professional": "开通",
				"flagship": "开通",
				"top": "开通"
			}
		],
		rankData: [
			{
				"id": "areabrand",
				"name": "区域品牌榜",
				"path": '/prerank',
				"highLightList": ["/prerank", "/backrank"],
				"icon": "/rank-icon3.png",
				"childList": [
					{
						"id": "prerank",
						"name": "优秀品牌榜",
						"path": '/prerank',
						"highLightList": ["/prerank"]
					},
// 				{
// 					"id": "backrank",
// 					"name": "垫底品牌榜",
// 					"path": "/backrank",
// 					"highLightList": ["/backrank"]
// 				}
				]
			},
			{
				"id": "areakind",
				"name": "区域品类榜",
				"path": "/areakind",
				"highLightList": ["/areakind"],
				"icon": "/rank-icon2.png"
			},
			{
				"id": "areashop",
				"name": "区域店铺榜",
				"path": "/areashop",
				"highLightList": ["/areashop"],
				"icon": "/rank-icon4.png"
			},
			{
				"id": "areafoods",
				"name": "区域产品榜",
				"path": '/areagoods',
				"highLightList": ["/areagoods"],
				"icon": "/rank-icon1.png"
			}
		],
		guideList: [
			{
				id:1,
				name:"辅助选址",
				mark:"siteval",
				msg:"小提示：选择城市并输入地址搜索后可查看该地址半径 2/2.5公里区域范围内的销量热力图和关键建筑物数据， 让您店铺选址更轻松。",
				isClicked:false
			},
			{
				id:3,
				name:"店铺搜索",
				mark:"store",
				msg:"小提示：选择城市并输入店铺名称搜索，可以直达该店 铺信息。您也可按照品类关键词试一试哟~",
				isClicked:false
			},
			{
				id:4,
				name:"品牌监控",
				mark:"branddetails",
				msg:"小提示：输入品牌名称搜索，可以直达该品牌全国信息。 您也可按照品类关键词试一试哟~",
				isClicked:false
			},
			{
				id:2,
				name:"地址搜索",
				mark:"address",
				msg:"小提示：选择城市并输入地址信息搜索后可以查看该地 址半径2公里区域范围内的店铺详情和关键建筑物数据",
				isClicked:false
			}
		]
	}
}

WEB_CONFIG.path.ver = ver || "./";
var production = {};